using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace JNPF.Basics.Models
{
    /// <summary>
    /// 企业贷款
    /// </summary>
    [Table("JIUSHI_CUSTOMERLOAN")]
    public class CustomerloanEntity
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [Key]
        [Column("F_ID")]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        /// <summary>
        /// 业务主键
        /// </summary>
        [Column("F_UUID")]
        [MaxLength(255)]
        public string UUID { get; set; }
        /// <summary>
        /// 贷款表ID
        /// </summary>
        [Column("F_CUSTOMERID")]
        public int? CustomerId { get; set; }

        /// <summary>
        /// 需求表ID
        /// </summary>
        [Column("F_CUSTOMERNEEDID")]
        public int? CustomerNeedId { get; set; }

        /// <summary>
        /// 需求表ID
        /// </summary>
        [Column("F_CUSTOMERNEEDRECORDID")]
        public int? CustomerNeedRecordId { get; set; }

        /// <summary>
        /// 管家用户ID
        /// </summary>
        [Column("F_USERID")]
        [MaxLength(255)]
        public string UserId { get; set; }

        /// <summary>
        /// 管家用户名称
        /// </summary>
        [Column("F_USERNAME")]
        [MaxLength(255)]
        public string UserName { get; set; }

        /// <summary>
        /// 银行经理ID
        /// </summary>
        [Column("F_BANKUSERID")]
        [MaxLength(255)]
        public string BankUserId { get; set; }

        /// <summary>
        /// 银行经理名称
        /// </summary>
        [Column("F_BANKUSERNAME")]
        [MaxLength(255)]
        public string BankUserName { get; set; }



        /// <summary>
        /// 银行经理名称
        /// </summary>
        [Column("F_BANKNAME")]
        [MaxLength(255)]
        public string BankName { get; set; }


        /// <summary>
        /// 贷款次数
        /// </summary>
        [Column("F_NUMBER")]
        public int? Number { get; set; }

        /// <summary>
        /// 首次提成
        /// </summary>
        [Column("F_FIRST")]
        public decimal? First { get; set; }

        /// <summary>
        /// 第二次提成
        /// </summary>
        [Column("F_SECOND")]
        public decimal? Second { get; set; }

        /// <summary>
        /// 第三次及以后
        /// </summary>
        [Column("F_ONCEMORE")]
        public decimal? OnceMore { get; set; }

        /// <summary>
        /// 上级抽佣比例
        /// </summary>
        [Column("F_DRAWPROPORTION")]
        public decimal? DrawProportion { get; set; }

        /// <summary>
        /// 贷款金额
        /// </summary>
        [Column("F_AMOUNT")]
        public decimal? Amount { get; set; }

        /// <summary>
        /// 贷款期限
        /// </summary>
        [Column("F_TERM")]
        [MaxLength(255)]
        public string Term { get; set; }

        /// <summary>
        /// 贷款利率
        /// </summary>
        [Column("F_RATE")]
        public decimal? Rate { get; set; }

        /// <summary>
        /// 担保方式
        /// </summary>
        [Column("F_METHOD")]
        [MaxLength(255)]
        public string Method { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [Column("F_SORTCODE")]
        public int? SortCode { get; set; }

        /// <summary>
        /// 产品详情
        /// </summary>
        [Column("F_DETAIL")]
        [MaxLength(255)]
        public string Detail { get; set; }

        /// <summary>
        /// 有效标志
        /// </summary>
        [Column("F_ENABLEDMARK")]
        public int? EnabledMark { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("F_CREATORTIME")]
        public DateTime? CreatorTime { get; set; }

        /// <summary>
        /// 创建用户
        /// </summary>
        [Column("F_CREATORUSERID")]
        [MaxLength(50)]
        public string CreatorUserId { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [Column("F_LASTMODIFYTIME")]
        public DateTime? LastModifyTime { get; set; }

        /// <summary>
        /// 修改用户
        /// </summary>
        [Column("F_LASTMODIFYUSERID")]
        [MaxLength(50)]
        public string LastModifyUserId { get; set; }

        /// <summary>
        /// 删除标志
        /// </summary>
        [Column("F_DELETEMARK")]
        public int? DeleteMark { get; set; }

        /// <summary>
        /// 删除时间
        /// </summary>
        [Column("F_DELETETIME")]
        public DateTime? DeleteTime { get; set; }

        /// <summary>
        /// 删除用户
        /// </summary>
        [Column("F_DELETEUSERID")]
        [MaxLength(50)]
        public string DeleteUserId { get; set; }

        /// <summary>
        /// 创建用户
        /// </summary>
        [Column("F_CREATORUSER")]
        [MaxLength(50)]
        public string CreatorUser { get; set; }


    }
}
